﻿<%@ Page Title="" Language="C#" MasterPageFile="~/adminpanel.master" AutoEventWireup="true" CodeFile="receveid.aspx.cs" Inherits="Web_receveid" %>

<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>

<%@ Register assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridLookup" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    
    <style type="text/css">
        .style3
        {
            width: 182px;
        }
        .style4
        {
            width: 57px;
        }
        .style6
        {
            width: 165px;
        }
        .style7
        {
            width: 189px;
        }
    </style>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">

    <table width="100%" >
    <tr>
        <td class="style4" >
            &nbsp;</td>
        <td class="style7" >
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style4" >
            &nbsp;</td>
        <td class="style7" >
            Order ID</td>
        <td>
            <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
                DataSourceID="SqlDataSource1" DataTextField="Or_ID" DataValueField="Or_ID" 
                onselectedindexchanged="DropDownList1_SelectedIndexChanged">
            </asp:DropDownList>
        </td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style4" >
            &nbsp;</td>
        <td class="style7" >
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style4" >
            &nbsp;</td>
        <td class="style7" >
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    </table>
            <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                ConnectionString="<%$ ConnectionStrings:BestlifeDBConnectionString %>" 
                
        SelectCommand="SELECT [Or_ID], [Pro_Name], [Pur_Price], [Description], [Qty] FROM [Tbl_GRNrequest] WHERE ([Or_ID] = @Or_ID) and ([status] IS NULL)">
                <SelectParameters>
                    <asp:ControlParameter ControlID="DropDownList1" Name="Or_ID" 
                        PropertyName="SelectedValue"  />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:BestlifeDBConnectionString %>" 
                
        
        SelectCommand="SELECT DISTINCT [Or_ID] FROM [Tbl_GRNrequest] WHERE ([status] IS NULL)"></asp:SqlDataSource>
        <dx:ASPxGridView ID="ASPxGridView1" runat="server" 
        AutoGenerateColumns="False" ClientIDMode="AutoID" 
        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
        DataSourceID="SqlDataSource2" KeyFieldName="Pro_Name" 
        oncustomunboundcolumndata="ASPxGridView1_CustomUnboundColumnData" 
        Width="100%" onrowupdating="ASPxGridView1_RowUpdating" 
        onselectionchanged="ASPxGridView1_SelectionChanged">
            <Columns>
                <dx:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0">
                </dx:GridViewCommandColumn>
                <dx:GridViewDataTextColumn FieldName="Pro_Name" ReadOnly="True" 
                    ShowInCustomizationForm="True" VisibleIndex="0" Caption="Product Name">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="Pur_Price" ShowInCustomizationForm="True" 
                    VisibleIndex="1" Caption="Price">
                    <PropertiesTextEdit DisplayFormatString="Rs.{0}">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="Description" 
                    ShowInCustomizationForm="True" VisibleIndex="2">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="Qty" ShowInCustomizationForm="True" 
                    VisibleIndex="3" Caption="Quantity">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataSpinEditColumn Caption="Line Total" UnboundType="Decimal" FieldName="Total" 
                    VisibleIndex="4">
                    <PropertiesSpinEdit DisplayFormatString="Rs.{0}">
                    </PropertiesSpinEdit>
                </dx:GridViewDataSpinEditColumn>
            </Columns>
            <Images SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                <LoadingPanelOnStatusBar Url="~/App_Themes/BlackGlass/GridView/gvLoadingOnStatusBar.gif">
                </LoadingPanelOnStatusBar>
                <LoadingPanel Url="~/App_Themes/BlackGlass/GridView/Loading.gif">
                </LoadingPanel>
            </Images>
            <ImagesFilterControl>
                <LoadingPanel Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                </LoadingPanel>
            </ImagesFilterControl>
            <Styles CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                CssPostfix="BlackGlass">
                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                </Header>
            </Styles>
            <StylesEditors>
                <CalendarHeader Spacing="1px">
                </CalendarHeader>
                <ProgressBar Height="25px">
                </ProgressBar>
            </StylesEditors>
    </dx:ASPxGridView>
    <br />
    <table width="100%" >
        <tr>
            <td class="style4" >
                &nbsp;</td>
            <td class="style3" >
                <strong>
                <dx:ASPxLabel ID="ASPxLabel3" runat="server" 
                    Text="Select purchase order status">
                </dx:ASPxLabel>
                </strong></td>
            <td class="style6" >
                <dx:ASPxComboBox ID="ASPxComboBox1" runat="server" ClientIDMode="AutoID" 
                    ValueType="System.String" 
                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                    <Items>
                        <dx:ListEditItem Text="Recevied" Value="1" />
                        <dx:ListEditItem Text="Cancelled" Value="2" />
                    </Items>
                    <LoadingPanelImage Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <ButtonStyle Width="11px">
                    </ButtonStyle>
                    <ValidationSettings ErrorText="Error has occurred">
                        <ErrorFrameStyle ImageSpacing="4px">
                            <ErrorTextPaddings PaddingLeft="4px" />
                        </ErrorFrameStyle>
                        <RequiredField ErrorText="Please Select Status" IsRequired="True" />
                    </ValidationSettings>
                </dx:ASPxComboBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4" >
                &nbsp;</td>
            <td class="style3" >
                <dx:ASPxLabel ID="ASPxLabel4" runat="server" ForeColor="Red" Visible="False">
                </dx:ASPxLabel>
            </td>
            <td class="style6" >
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4" >
                &nbsp;</td>
            <td class="style3" >
                <dx:ASPxLabel ID="ASPxLabel2" runat="server" Font-Bold="True" 
                    ForeColor="#00CC00" Visible="False">
                </dx:ASPxLabel>
            </td>
            <td class="style6" >
                <dx:ASPxButton ID="ASPxButton1" runat="server" ClientIDMode="AutoID" 
                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                    onclick="ASPxButton1_Click" 
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Submit">
                </dx:ASPxButton>
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <br />


</asp:Content>

